package com.gitee.kenewstar.migration.service;

import com.gitee.kenewstar.migration.entity.JobCronTriggers;
import com.gitee.kenewstar.migration.entity.JobDetails;
import com.gitee.kenewstar.migration.entity.JobExecutor;
import com.gitee.kenewstar.migration.entity.JobInfo;
import com.gitee.kenewstar.migration.entity.JobTriggers;

import java.util.List;

/**
 * @author kenewstar
 */
public interface JobService {

    List<JobExecutor> devSelectExecutor(List<Long> executorIds);

    List<JobInfo> devSelectJobInfo(List<String> jobCodeList, Long tenantId);

    List<JobInfo> devSelectJobInfoList(List<JobInfo> list);

    List<JobTriggers> devSelectJobTriggers(List<Long> jobIds, List<Long> tenantIds);

    List<JobCronTriggers> devSelectJobCronTriggers(List<Long> jobIds, List<Long> tenantIds);

    List<JobDetails> devSelectJobDetails(List<Long> jobIds, List<Long> tenantIds);

    List<JobExecutor> uatSelectExecutor(List<String> executorCodeList);

    void uatInsertJobInfo(List<JobInfo> list);

    void uatInsertTriggers(List<JobTriggers> list);

    void uatInsertCronTriggers(List<JobCronTriggers> list);

    void uatInsertJobDetails(List<JobDetails> list);

}
